import axios from '@/utils/http';
export const login = (data) => {
  return axios({
    url: '/accounts/login',
    method: 'post',
    data
  });
};

// 验证请求
export const sendCaptcha = (tel) => {
  return axios({
    method: 'post',
    url: '/captchas',
    data: { tel }
  });
};

// 注册
export const register = (data) => {
  return axios({
    method: 'post',
    url: '/accounts/register',
    data
  });
};